/*
 * @Author: your name
 * @Date: 2021-04-02 18:19:04
 * @LastEditTime: 2021-04-06 14:33:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \inventory-apie:\hjimi\人脸辨识云\html\visitorOrder\api\user.js
 */
import request from '../commom/js/request.js'

/**
 * @description: 
 * @param {code, phone}
 */
export function login(data){ // 模拟登录
	return request({
	    url: 'user/login',
		method: 'POST',
		data: data
	 })
    }

export function getSessionKey(data){ // 模拟登录
	return request({
	    url: 'user/getSessionKey',
		method: 'POST',
		data: data
	 })
    }
/**
 * @description: 
 * @param {code, phone}
 */
 export function getPhone(data){ // 模拟登录
	return request({
	    url: 'user/phone',
		method: 'GET',
		data
	 })
    }
	/**
 * @description: 
 * @param {code, phone}
 */
export function getInfo(data){ // 模拟登录
		return request({
			url: 'user/info',
			method: 'GET',
			data
		 })
		}